package com.smarthouse.service;

import com.smarthouse.model.SmartHomeStatus;
import org.springframework.stereotype.Service;

@Service
public class SmartHomeService {

    private SmartHomeStatus status = new SmartHomeStatus(false, false, "");

    public SmartHomeStatus getStatus() {
        return status;
    }

    public void toggleLock() {
        status.setLockStatus(!status.isLockStatus());
    }

    public void updateEnergySaving(boolean energySaving) {
        status.setEnergySaving(energySaving);
    }

    public void updateReminder(String reminder) {
        status.setReminder(reminder);
    }
} 